<div class="row">
  <div class="col-md-7">
    <%= simple_form_for(@user) do |f| %>
      <%= f.error_messages %>

      <%= f.input :cid %>
      <%= f.input :ssid %>
      <%= f.input :sstype, collection: Ssp::User::SSTYPES %>
      <%= f.input :nickname %>

      <%= f.input :password, hint: @user.new_record? || "若不需要更改密码，请留空密码和确认密码" %>
      <%= f.input :password_confirmation %>

      <%= f.input :active, label: "启用" %>

      <%= f.button :submit, "保存", class: "btn-primary pull-right" %>
    <% end %>
  </div>
</div>
